import { getList } from '@/api/maintainData/word'
export default {
  hasPage: true,
  hasIndex: true,
  request: (params) => {
    return getList(params)
  },
  dataParse: (res) => {
    const resData = res.data.data
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'createTime',
      label: '创建时间',
    },
    // {
    //   prop: 'channelKey',
    //   label: '渠道',
    //   isSlot: true,
    // },
    {
      prop: 'content',
      label: '词库内容',
    },
    {
      prop: 'tag',
      label: '词库作用',
      isSlot: true,
    },
    {
      prop: 'remark',
      label: '备注',
    },
    {
      prop: 'state',
      label: '状态',
      isSlot: true,
    },
    {
      prop: 'operate',
      label: '操作',
      isSlot: true,
    }
  ]
}